<?php
/**
 * Created by PhpStorm.
 * User: wangjie
 * Date: 2018/11/19
 * Time: 13:58
 */
namespace common\models\city;

use Yii;
use common\models\BaseModels;
use yii\behaviors\TimestampBehavior;

/**
 * Class CityCode
 * @package common\models\city
 */
class CityCode extends BaseModels
{
    /**
     * @return string
     */
    public static function tableName()
    {
        return '{{city_code}}';
    }

    /**
     * @return array
     */
    public function rules()
    {
        return [
            [[  'id',
                'city',
                'adcode',
                'citycode',
            ], 'safe'],
        ];
    }
}